package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fil=new FileOutputStream("osw.txt");
        OutputStreamWriter ows=new OutputStreamWriter(fil, StandardCharsets.UTF_8);
        ows.write("变身神兵，天津，正义力量");
        System.out.println("写出完毕");
        ows.close();
    }
}
